#include <iostream>

using namespace std;

int main(void)
{
    int arr1[5]={1,2,3,4,5};
    int arr_t[5]={0};
    int i;
    for (int i = 4; i >= 0; i--)
    {
        arr_t[4-i] = arr1[i];
    }
    
    for ( i = 0; i < 5; i++)
    {
        cout << arr_t[i] <<',';
    }
    cout<< endl;

    return 0;
}